
#ifdef SYPX_MEMCHECK
#include "mmgr.h"
#endif

#include "Sheep.h"

namespace SheepDefence 
{
	Sheep::Sheep()
	{
	}

	Sheep::~Sheep()
	{
	}

	Sheep::Sheep(SypX::FileInputStream& fin, SypX::Sprite* sprite)
	{
		SypX::String temp;

		SypX::ErrorLogger::getLogger() << "Loading Sheep...\n";

		this->sprite = sprite;
		
		std::getline(fin, temp);	// Absorb name

		fin >> collision;
		fin >> speed;
		fin >> fear;
		fin >> rest;
		fin >> hp;
		
		SypX::ErrorLogger::getLogger() << "Loaded: " << speed << ", " << fear << ", " << rest << ", " << hp << "\n";

		type = SHEEP;
	}
}